/*
 * Copyright (C) 2017-2019 Dremio Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 @import "~@app/uiTheme/less/color-schema.less";
 @import "~@app/uiTheme/less/variables.less";
 @import "~@app/uiTheme/less/mixins.less";

:global {
  .draggable-icon {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    visibility: hidden;
  }
  .draggable-row:hover .draggable-icon {
    visibility: visible;
  }
}

.base {
  min-height: @row-element-height;
}

.content {
  composes: table-row from '@app/uiTheme/less/forms.less';
  position: relative;
  border: 1px solid transparent;
  margin-left: @row-content-margin;
  margin-right: @row-content-margin;
  cursor: move;

  &:hover {
    .dragged-item-mixin();
    box-shadow: 0px 0px 4px 0px @TABLE_BORDER;
  }
}

.disabled {
  cursor: default;

  &:hover {
    background-color: transparent;
    box-shadow: none;
    border-color: transparent;
  }
}

.icon {
  @size: 16px;
  width: @size;
  height: @size;
  margin-left: 5px
}